/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn;

import java.time.LocalDate;

/**
 * <p>Project: javase2203 - Book
 * <p>Powered by webrx On 2022-08-11 17:36:42
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */

public class Book {
    private int id = 100;
    private String name;
    private double price;
    private String author;

    private LocalDate pubdate;

    public int pf(int num) {
        return num * num;
    }

    private int lf(int i) {
        return i * i * i;
    }

    public Book(int id, String name, double price) {
        this.id = id;
        this.name = name;
        this.price = price;
    }

    public Book(int id, String name, double price, String author, LocalDate pubdate) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.author = author;
        this.pubdate = pubdate;
    }

    public Book() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public LocalDate getPubdate() {
        return pubdate;
    }

    public void setPubdate(LocalDate pubdate) {
        this.pubdate = pubdate;
    }
}
